import http from '@/utils/http'

// 每日充电时长统计
export const chargingTimeDataByDay = (params) => {
  const url = '/data-statistic/chargingDataStatistic/chargingTimeDataByDay'
  return http.post(url, params)
}

// 订单数据统计
export const orderDataStatistic = (params) => {
  const url = '/data-statistic/chargingDataStatistic/OrderDataStatistic'
  return http.post(url, params)
}

// 每月充电时长统计
export const chargingTimeDataByMonth = (params) => {
  const url = '/data-statistic/chargingDataStatistic/chargingTimeDataByMonth'
  return http.post(url, params)
}

// 每日充电量统计
export const electricityStatisticByDay = (params) => {
  const url = '/data-statistic/chargingDataStatistic/electricityStatisticByDay'
  return http.post(url, params)
}

// 每月充电量统计
export const electricityStatisticByMonth = (params) => {
  const url =
    '/data-statistic/chargingDataStatistic/electricityStatisticByMonth'
  return http.post(url, params)
}

// 端口平均充电时长
export const plugNumChargingTimeStatistic = (params) => {
  const url =
    '/data-statistic/chargingDataStatistic/plugNumChargingTimeStatistic'
  return http.post(url, params)
}

// 每日套餐订单数量统计
export const timeCardOrderDataByDay = (params) => {
  const url = '/data-statistic/chargingDataStatistic/timeCardOrderDataByDay'
  return http.post(url, params)
}

// 每月套餐订单数量统计
export const timeCardOrderDataByMonth = (params) => {
  const url = '/data-statistic/chargingDataStatistic/timeCardOrderDataByMonth'
  return http.post(url, params)
}
